package com.zan.pattern.visitor;

/**
 * @Author Zan
 * @Create 2024/4/27 17:31
 * @Description : 具体访问者角色类
 * @ClassName: Someone
 */
public class Someone implements Person {
    @Override
    public void feed(Cat cat) {
        System.out.println("其他人喂食猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("其他人喂食狗");
    }
}
